package cn.cqie.attendance.common.dao;

import cn.cqie.attendance.common.pojo.Attachment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttachmentMapper extends BaseMapper<Attachment> {

    @Override
    int insert(Attachment attachment);

    List<Attachment> queryAttachment(@Param("homeworkId") Integer homeworkId,
                               @Param("leaveId") Integer leaveId,
                               @Param("publishHomeworkId") Integer publishHomeworkId);

    int deleteAttachment(@Param("id") Integer id);
}
